home *** CD-ROM | disk | FTP | other *** search
/ ADA Programming Guide / ADA Programming Guide.iso / adatutor / cppwkbk / cppv2-13.cpp < prev    next >
C/C++ Source or Header  |  1996-01-30  |  256b  |  14 lines

  1. #define HEADER "C++ Problem 2.1 by Rick Conn using Borland C++"
  2. #include <stdio.h>
  3.  
  4. float fcppv21(int);  // prototype with wrong return type
  5.  
  6. void main(void)
  7. {
  8.   float i;
  9.  
  10.   printf("%s\n", HEADER);
  11.   i = fcppv21(2);
  12.   printf("I = %d\n", i);
  13. }
  14.